package red.mlz.excelservice.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import red.mlz.common.entity.category.Category;

import java.util.List;

@FeignClient(name = "game-service")
public interface CategoryFeign {

    @RequestMapping("/game-service/category/total")
    long getTotalCount();

    @RequestMapping("/game-service/category/page")
    List<Category> getByPage(@RequestParam(name = "page") int page,
                             @RequestParam(name = "size") int size);
}
